require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'
require 'soap/header/simplehandler'
require 'defaultDriver.rb'
require 'authStub.rb'
require 'WSHelpers.rb'

props = {
  :object => 'DataExtensionObject[APITestDe4]',
  :props => ['EmailAddress','FirstName','PhoneNumber']
}

filter = nil

deRows = BuildRetrieve.new
resp = deRows.creates(props,filter)

resp.results.each do |result|
  row = String.new
  result.properties.each_with_index do |property, i|
      row = row + props[:props][i] + " - " + property.value
      row = i == (result.properties.length - 1) ? row : row + " : "
  end
  puts row
end